function language(word) {
  if (/^[\u4e00-\u9fa5]+$/.test(word)) {
    return 'zh';
  } else {
    return 'en'
  }
}

console.log(language('english'));
